#ifndef TOOLCREATELINE_H
#define TOOLCREATELINE_H

#include "ToolBase.h"

class GraphicsView;
class GraphicsScene;
class GraphicsLineItem;

class QUINCE_TOOL_EXPORT ToolCreateLine : public ToolBase
{
public:
    explicit ToolCreateLine(const QString &icon, const QString &grp = QString());

    virtual QString name() const;
    virtual void mousePressEvent(GraphicsView *view, QMouseEvent *event);
    virtual void mouseReleaseEvent(GraphicsView *view, QMouseEvent *event);
    virtual void mouseMoveEvent(GraphicsView *view, QMouseEvent *event);
private:
    GraphicsScene *m_scene;
    GraphicsLineItem *m_line;
    bool m_pressedFirst, m_pressedSecond;
};

#endif // TOOLCREATELINE_H
